package com.ssd.service;

import com.ssd.entity.GiftExchange;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ssd.entity.dto.request.GiftExchangePutReqDTO;
import com.ssd.entity.dto.request.GiftExchangeQueryForPageReqDTO;
import com.ssd.viewmodel.Pager;

import java.util.List;

/**
 * <p>
 * 礼品兑换表 服务类
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
public interface IGiftExchangeService extends IService<GiftExchange> {

    /**
     * 分页查询兑换记录
     * @param lastId
     * @return
     */
    List<GiftExchange> queryGiftExchangeList(Long lastId);

    /**
     * 填写快递信息
     * @param giftExchangePutReqDTO
     */
    void setExchangeInfo(GiftExchangePutReqDTO giftExchangePutReqDTO);

    /**
     * 运营端查询兑换记录
     * @param giftExchangeQueryForPageReqDTO
     * @return
     */
    Pager<GiftExchange> queryOperationGiftExchangeList(GiftExchangeQueryForPageReqDTO giftExchangeQueryForPageReqDTO);

    /**
     * 确认收货
     */
    void confirmReceipt(Long id);

}
